package com.ruoyi.order.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 order
 *
 * @author ruoyi
 * @date 2022-02-04
 */
public class Order extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 销售ID
     */
    private Integer saleID;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderNO;

    /**
     * 用户ID
     */
    private Integer userID;

    /**
     * 商品ID
     */
    private Integer productID;

    /**
     * 实际支付金额
     */
    @Excel(name = "实际支付金额")
    private BigDecimal actPayMoney;

    /**
     * 支付次数
     */
    @Excel(name = "支付次数")
    private Integer payNum;

    private String remarks;

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer state;

    /**
     * 支付金额
     */
    @Excel(name = "支付金额")
    private BigDecimal payMoney;

    /**
     * 产品价格
     */
    @Excel(name = "产品价格")
    private BigDecimal productPrice;

    /**
     * 折扣
     */
    @Excel(name = "折扣")
    private Integer dicount;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private Integer createUser;

    public void setSaleID(Integer saleID) {
        this.saleID = saleID;
    }

    public Integer getSaleID() {
        return saleID;
    }

    public void setOrderNO(String orderNO) {
        this.orderNO = orderNO;
    }

    public String getOrderNO() {
        return orderNO;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    public Integer getUserID() {
        return userID;
    }

    public void setProductID(Integer productID) {
        this.productID = productID;
    }

    public Integer getProductID() {
        return productID;
    }

    public void setActPayMoney(BigDecimal actPayMoney) {
        this.actPayMoney = actPayMoney;
    }

    public BigDecimal getActPayMoney() {
        return actPayMoney;
    }

    public void setPayNum(Integer payNum) {
        this.payNum = payNum;
    }

    public Integer getPayNum() {
        return payNum;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getState() {
        return state;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    public BigDecimal getPayMoney() {
        return payMoney;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setDicount(Integer dicount) {
        this.dicount = dicount;
    }

    public Integer getDicount() {
        return dicount;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("saleID", getSaleID())
                .append("orderNO", getOrderNO())
                .append("userID", getUserID())
                .append("productID", getProductID())
                .append("actPayMoney", getActPayMoney())
                .append("payNum", getPayNum())
                .append("state", getState())
                .append("payMoney", getPayMoney())
                .append("productPrice", getProductPrice())
                .append("dicount", getDicount())
                .append("createTime", getCreateTime())
                .append("createUser", getCreateUser())
                .toString();
    }
}
